﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using Prism.Mvvm;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views.Home
{
	// Token: 0x0200004C RID: 76
	[XamlFilePath("Views\\Home\\Strengthen.xaml")]
	public class Strengthen : ContentPage
	{
		// Token: 0x060000F9 RID: 249 RVA: 0x0003F948 File Offset: 0x0003DB48
		public Strengthen()
		{
			this.InitializeComponent();
		}

		// Token: 0x060000FA RID: 250 RVA: 0x0003F958 File Offset: 0x0003DB58
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(Strengthen).GetTypeInfo().Assembly.GetName(), "Views/Home/Strengthen.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			Label label = new Label();
			BindingExtension bindingExtension = new BindingExtension();
			Switch @switch = new Switch();
			StackLayout stackLayout = new StackLayout();
			Frame frame = new Frame();
			Label label2 = new Label();
			Label label3 = new Label();
			BindingExtension bindingExtension2 = new BindingExtension();
			Switch switch2 = new Switch();
			Label label4 = new Label();
			BindingExtension bindingExtension3 = new BindingExtension();
			Switch switch3 = new Switch();
			StackLayout stackLayout2 = new StackLayout();
			Label label5 = new Label();
			BindingExtension bindingExtension4 = new BindingExtension();
			Switch switch4 = new Switch();
			Label label6 = new Label();
			BindingExtension bindingExtension5 = new BindingExtension();
			Switch switch5 = new Switch();
			Label label7 = new Label();
			BindingExtension bindingExtension6 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
			Image image = new Image();
			StackLayout stackLayout3 = new StackLayout();
			Label label8 = new Label();
			Label label9 = new Label();
			BindingExtension bindingExtension7 = new BindingExtension();
			string item = "全部未锁";
			string item2 = "金色以下";
			string item3 = "紫色以下";
			string item4 = "蓝色以下";
			Picker picker = new Picker();
			Label label10 = new Label();
			BindingExtension bindingExtension8 = new BindingExtension();
			Entry entry = new Entry();
			StackLayout stackLayout4 = new StackLayout();
			Label label11 = new Label();
			BindingExtension bindingExtension9 = new BindingExtension();
			Entry entry2 = new Entry();
			Label label12 = new Label();
			BindingExtension bindingExtension10 = new BindingExtension();
			Switch switch6 = new Switch();
			StackLayout stackLayout5 = new StackLayout();
			StackLayout stackLayout6 = new StackLayout();
			Frame frame2 = new Frame();
			StackLayout stackLayout7 = new StackLayout();
			NameScope nameScope = new NameScope();
			NameScope.SetNameScope(this, nameScope);
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame.SetValue(View.MarginProperty, new Thickness(3.0, 3.0, 3.0, 0.0));
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label.SetValue(Label.TextProperty, "强化分解");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout.Children.Add(label);
			@switch.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension.Path = "Game.StrengthenTask.Enabled";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			@switch.SetBinding(Switch.IsToggledProperty, binding);
			stackLayout.Children.Add(@switch);
			frame.SetValue(ContentView.ContentProperty, stackLayout);
			stackLayout7.Children.Add(frame);
			frame2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame2.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 3.0, 3.0));
			label2.SetValue(Label.TextProperty, "当船舱剩余容量＜5时，系统自动强化等级最高的、改造后的舰娘，按需求吞食。剩下的不能强化的狗粮自动分解。");
			BindableObject bindableObject = label2;
			BindableProperty fontSizeProperty = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
			string value = "12";
			XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
			Type typeFromHandle = typeof(IProvideValueTarget);
			object[] array = new object[0 + 5];
			array[0] = label2;
			array[1] = stackLayout6;
			array[2] = frame2;
			array[3] = stackLayout7;
			array[4] = this;
			object service;
			xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, Label.FontSizeProperty, nameScope));
			xamlServiceProvider.Add(typeof(IReferenceProvider), service);
			Type typeFromHandle2 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
			xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(Strengthen).GetTypeInfo().Assembly));
			xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(16, 83)));
			bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
			label2.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout6.Children.Add(label2);
			stackLayout2.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label3.SetValue(Label.TextProperty, "自动分解:");
			label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout2.Children.Add(label3);
			switch2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension2.Path = "Game.StrengthenTask.IsDismantleBoat";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			switch2.SetBinding(Switch.IsToggledProperty, binding2);
			stackLayout2.Children.Add(switch2);
			label4.SetValue(Label.TextProperty, "卸下装备:");
			label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label4.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
			stackLayout2.Children.Add(label4);
			bindingExtension3.Path = "Game.StrengthenTask.IsKeepEequipment";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			switch3.SetBinding(Switch.IsToggledProperty, binding3);
			stackLayout2.Children.Add(switch3);
			stackLayout6.Children.Add(stackLayout2);
			stackLayout3.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label5.SetValue(Label.TextProperty, "自动强化:");
			label5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout3.Children.Add(label5);
			switch4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension4.Path = "Game.StrengthenTask.IsStrengthen";
			BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
			switch4.SetBinding(Switch.IsToggledProperty, binding4);
			stackLayout3.Children.Add(switch4);
			label6.SetValue(Label.TextProperty, "升级技能:");
			label6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label6.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
			stackLayout3.Children.Add(label6);
			switch5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension5.Path = "Game.StrengthenTask.IsSkillLevelUp";
			BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
			switch5.SetBinding(Switch.IsToggledProperty, binding5);
			stackLayout3.Children.Add(switch5);
			label7.SetValue(Label.TextProperty, "优先强化");
			label7.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label7.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
			stackLayout3.Children.Add(label7);
			image.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("up.png"));
			image.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			image.SetValue(VisualElement.HeightRequestProperty, 24.0);
			image.SetValue(VisualElement.WidthRequestProperty, 24.0);
			image.SetValue(View.MarginProperty, new Thickness(5.0, 0.0));
			bindingExtension6.Path = "StrengthenShipCommand";
			BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
			tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding6);
			image.GestureRecognizers.Add(tapGestureRecognizer);
			stackLayout3.Children.Add(image);
			stackLayout6.Children.Add(stackLayout3);
			label8.SetValue(Label.TextProperty, "注意：以下分解的条件同样适用于强化");
			BindableObject bindableObject2 = label8;
			BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
			string value2 = "12";
			XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
			Type typeFromHandle3 = typeof(IProvideValueTarget);
			object[] array2 = new object[0 + 5];
			array2[0] = label8;
			array2[1] = stackLayout6;
			array2[2] = frame2;
			array2[3] = stackLayout7;
			array2[4] = this;
			object service2;
			xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
			xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
			Type typeFromHandle4 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
			xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(Strengthen).GetTypeInfo().Assembly));
			xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(36, 49)));
			bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
			label8.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout6.Children.Add(label8);
			stackLayout4.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label9.SetValue(Label.TextProperty, "分解（吃掉）:");
			label9.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout4.Children.Add(label9);
			bindingExtension7.Path = "Game.StrengthenTask.DismantleStar";
			BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
			picker.SetBinding(Picker.SelectedIndexProperty, binding7);
			picker.SetValue(VisualElement.WidthRequestProperty, 85.0);
			picker.Items.Add(item);
			picker.Items.Add(item2);
			picker.Items.Add(item3);
			picker.Items.Add(item4);
			stackLayout4.Children.Add(picker);
			label10.SetValue(Label.TextProperty, "超过等级不分解:");
			label10.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label10.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			stackLayout4.Children.Add(label10);
			bindingExtension8.Path = "Game.StrengthenTask.DismantleLevel";
			BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
			entry.SetBinding(Entry.TextProperty, binding8);
			entry.SetValue(VisualElement.WidthRequestProperty, 50.0);
			entry.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			stackLayout4.Children.Add(entry);
			stackLayout6.Children.Add(stackLayout4);
			label11.SetValue(Label.TextProperty, "分解白名单,名称模糊匹配,使用|分隔");
			label11.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout6.Children.Add(label11);
			bindingExtension9.Path = "Game.StrengthenTask.DisWhitelist";
			BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
			entry2.SetBinding(Entry.TextProperty, binding9);
			entry2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
			stackLayout6.Children.Add(entry2);
			stackLayout5.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label12.SetValue(Label.TextProperty, "自动清理蓝色以下装备：");
			label12.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout5.Children.Add(label12);
			switch6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension10.Path = "Game.StrengthenTask.IsDismantleEequipment";
			BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
			switch6.SetBinding(Switch.IsToggledProperty, binding10);
			stackLayout5.Children.Add(switch6);
			stackLayout6.Children.Add(stackLayout5);
			frame2.SetValue(ContentView.ContentProperty, stackLayout6);
			stackLayout7.Children.Add(frame2);
			this.SetValue(ContentPage.ContentProperty, stackLayout7);
		}

		// Token: 0x060000FB RID: 251 RVA: 0x00040580 File Offset: 0x0003E780
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(Strengthen));
		}
	}
}
